how to Implement Hardware behind Multiplexer